package application;
import dataStructures.*;
/**
 * @author Carlos Duarte - 43796
 * @author Rafael Florencio - 43829
 */
public class DicionarioClass implements Dicionario {
	private static final long serialVersionUID = 0L;
	private Dictionary<String, String> words;
	public DicionarioClass()
	{
		words = new AVLTree<String, String>();
	}
	
	@Override
	public void addWord(String word) {
		words.insert(word.toLowerCase(), word.toLowerCase());
	}

	@Override
	public boolean verifyWord(String word) {
		return words.find(word.toLowerCase()) != null;
	}

}
